  <div class="xf_ht_tablelist" >
    <!-- 搜索 -->
    <div class="xf_ht_search_inon" style="border:0px;">
       <div class="xf_ht_search_r">
         <div class="xf_ht_search_xl">
           <input id="keyword" type="text" class="search_w"  placeholder="请输入用户名" value="${pageBean?.conditions?.key}"/>
         </div>
         <div class="xf_ht_search_xl">
           <input class="search_button" type="button" onclick="search();" value="搜索">
         </div>
       </div>
    </div>
    <!-- 列表内容 -->
    <div style=" overflow: auto; width:780px;">
	    <div class="xn_c_content_top" style="width:1500px; margin-left:10px;margin-right:10px; overflow: auto;" >
	      #{table border:"0", cellspacing:"0", cellpadding:"0", class:"xn_c_content_list",tr_class_odd:"xn_tr_bj"}
	        #{tr}
	          #{th}<input type="checkbox" name="check_all" onclick="checkAll()" value="-1"/>#{/th}
			  #{th}序号#{/th}
			  #{th}用户名#{/th}
			  #{th}注册时间#{/th}
			  #{th}信用等级#{/th}
			  #{th}充值总额#{/th}
			  #{th}投标总数#{/th}
			  #{th}投标总额#{/th}
			  #{th}借款总数#{/th}
			  #{th}借款总额#{/th}
			  #{th}绑定邮箱#{/th}
			  #{th}是否激活#{/th}
			  #{th}绑定手机#{/th}
			  #{th}审核科目数#{/th}
			  #{th}是否黑名单#{/th}
			  #{th}账户余额#{/th}
			  #{th}最后登录时间#{/th}
			  #{th}状态#{/th}
	        #{/tr}
			#{list pageBean.page, as:'user'}
	        #{tr tr_index:content_index}
	          #{td}<input type="checkbox" name="check_box" class="xf_mem_znx_wdtr_checkbox" value="${user?.name}" />#{/td}
			  #{td}${(pageBean?.currPage - 1) * pageBean?.pageSize + user_index}#{/td}
			  #{td}${user?.name}#{/td}
			  #{td}${user?.register_time?.format("yyyy-MM-dd")}#{/td}
			  #{td}#{img src:"${user?.credit_level_image_filename}",alt:"",width:"20",height:"20"}#{/img}#{/td}
			  #{td}${user?.recharge_amount?.format("###,##0.00")}#{/td}
			  #{td}${user?.invest_count}#{/td}
			  #{td}${user?.invest_amount?.format("###,##0.00")}#{/td}
			  #{td}${user?.bid_count}#{/td}
			  #{td}${user?.bid_amount?.format("###,##0.00")}#{/td}
			  #{td}${user?.email}#{/td}
			  #{td}#{if user?.is_activation == true}是#{/if}#{else}否#{/else}#{/td}
			  #{td}${user?.mobile1}#{/td}
			  #{td}${user?.audit_item_count}#{/td}
			  #{td}#{if user?.is_blacklist == true}是#{/if}#{else}否#{/else}#{/td}
			  #{td}${user?.user_amount?.format("###,##0.00")}#{/td}
			  #{td}${user?.last_login_time?.format("yyyy-MM-dd")}#{/td} 
			  #{td}${user.is_allow_login ? "锁定" : "正常"}#{/td}
	        #{/tr}
			#{/list}
	      #{/table}
	    </div>
    </div>
    <!-- 列表底部 -->
    <div class="xn_c_content_bottom" style="border:0px;width:740px;">
      #{page funMethod:"selectUsersInit",currPage:pageBean.currPage,pageSize:pageBean.pageSize,totalCount:pageBean.totalCount,theme:2,style:4/}
      <div class="page_warp_l">
          <input type="button" value="确  定" onclick="submit();" class="xf_htbutton"/>
          <input type="button" id="cancel" value="取  消" class="xf_htbutton"/>
      </div>
    </div>
  </div>
<script type="text/javascript">
  $(function() {
    //取消
	$("#cancel").click(function() {
	  layer.closeAll();
	});
    init();
  });

  //初始化
  function init() {
	  $('input:checkbox[name=check_box]').each(function(){
      if (g_selectedNames.inArray($(this).val())) {
        $(this).attr("checked", "checked");
      }
    });
  }
	
  //搜索
  function search() {
    selectUsersInit(1, 4);
  }

  //确定提交
  function submit() {
	  $('input:checkbox[name=check_box]').each(function(){
		  var name = $(this).val();
		  var isSelected = this.checked;
	
		  if (isSelected) {
		    g_selectedNames.push(name);
		  } else {
		    g_selectedNames.removeObject(name);
		  }
	  });	

	  if (g_selectedNames.length == 0) {
	      alert("请选择至少一个会员");
				
	      return;
	    }
    usersDidSelect(g_selectedNames);
    layer.closeAll();
}
</script>